package com.barbeque.mall.service.wx;

import com.barbeque.mall.bean.issue.MarketIssue;
import com.barbeque.mall.bean.issue.MarketIssueExample;
import com.barbeque.mall.mapper.MarketIssueMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 苏东宇
 * @since 2022/07/21 15:26
 */
@Service
public class WxIssueServiceImpl implements WxIssueService {

    @Autowired
    MarketIssueMapper marketIssueMapper;

    @Override
    public List<MarketIssue> getIssue() {
        MarketIssueExample marketIssueExample = new MarketIssueExample();
        MarketIssueExample.Criteria criteria = marketIssueExample.createCriteria();
        criteria.andDeletedEqualTo(false);

        List<MarketIssue> marketIssues = marketIssueMapper.selectByExample(marketIssueExample);

        return marketIssues;
    }
}
